<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

<xsl:template match="*|/"><xsl:apply-templates/></xsl:template>

<xsl:template match="text()|@*"><xsl:value-of select="."/></xsl:template>

<xsl:template match='nbsp' name='nbsp'>
<xsl:text disable-output-escaping='yes'>&amp;nbsp;</xsl:text>
</xsl:template>

<xsl:template match="activity">
		<table class="body" border="0" cellspacing="1" cellpadding="5" width="100%">
		<tr>
		<td width="100%" align="center">
<xsl:choose>
	<xsl:when test="@senderEmail">
	<table class="body">
	<FORM METHOD="POST" action="/invite2Activity.aspx">
	<tr><td align="center">
	<a class="body" style="text-decoration: none; color:black;" href="/invite2Activity.aspx?activityId={/activity/@activityId}">Voglio invitare un mio amico a partecipare a questa attivita'!</a>
	</td></tr>
	<tr><td align="center">
	<INPUT TYPE="TEXT" SIZE="20" NAME="HPrecipient"></INPUT><br/>
	<font class="body_10px_red">Inserisci l'email di un amico o di una amica e premi invio.</font><br/>
	</td></tr>
	</FORM>
	</table>
	</xsl:when>
	<xsl:otherwise>
		<font style="color:black;text-decoration: none;" class="fakeA" onmouseover="ShowTooltipRight('1pActivityAll');" onmouseout="HideTooltip('1pActivityAll');">Voglio invitare un mio amico a partecipare a questa attivita'!</font>
	</xsl:otherwise>
</xsl:choose>
		</td>
		</tr>
		<tr><td background="imgs/filo_frm.gif" width="100%" align="center"></td></tr>
		<tr>
		<td width="100%" align="center">
<xsl:choose>
	<xsl:when test="@senderEmail">
		<a class="body" style="text-decoration: none; color:black;" href="findUser4Activity.aspx?activityId={/activity/@activityId}">Cerca un utente di dammela ed invitalo a questa attivita'!</a>
	</xsl:when>
	<xsl:otherwise>
		<font style="color:black;text-decoration: none;" class="fakeA" onmouseover="ShowTooltipRight('1pActivityAll');" onmouseout="HideTooltip('1pActivityAll');">Cerca un utente di dammela ed invitalo a questa attivita'!</font>
	</xsl:otherwise>
</xsl:choose>
		</td>
		</tr>
		</table>
</xsl:template>

</xsl:stylesheet>